    {include file="../view/head" /}
    <style>
        #user_list .panel-heading>form{
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-right: 40px;
        }
        #user_list .panel-heading>form>div>label{
            width: 100%;
            background: #666;
            color: #fff;
            border-radius: 4px 4px 0 0;
            border: 1px solid #666;
            margin: 0;
            text-align: center;
        }
        #user_list .panel-heading>form>div>.form-control{
            border-radius: 0 0 4px 4px;
            border: 1px solid #666;
            padding: 0;
            height: auto;
        }
        td>.btn{font-weight: normal;}
    </style>
    </head>
    <body>
        {include file="../view/header" /}
        {include file="../view/sidebar" /}
        {include file="../view/right-sidebar" /}
        <!-- Start #content -->
        <div id="content">
            <!-- Start .content-wrapper -->
            <div class="content-wrapper">
                <div class="row">
                    <!-- Start .row -->
                    <!-- Start .page-header -->
                    <div class="col-lg-12 heading hidden-xs hidden-sm">
                        <!-- Start .bredcrumb -->
                        <ul id="crumb" class="breadcrumb"></ul>
                        <!-- End .breadcrumb -->
                    </div>
                    <!-- End .page-header -->
                </div>
                <!-- End .row -->
                <div class="outlet">
                    <!-- Start .outlet -->
                    <!-- Page start here ( usual with .row ) -->
                    <div class="row">
                        <div class="col-md-12" id="user_list">
                            <!-- col-lg-12 start here -->
                            <div class="panel panel-default toggle panelRefresh">
                                <!-- Start .panel -->
                                <div class="panel-heading" style="padding: 10px 15px;">
                                    
                                </div>
                                <div class="panel-body">
                                    <table class="table table-bordered table-hover table-striped">
                                        <thead>
                                            <tr>
                                                <th class="per5">
                                                    <label class="checkbox">
                                                        <input class="check-all" type="checkbox">
                                                    </label>
                                                </th>
                                                <th>用户名</th>
                                                <th>任务</th>
                                                <th>挑战时间</th>
                                                <th>状态</th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                        {foreach $lists as $item} 
                                            <tr>
                                                <td>
                                                    <label class="checkbox">
                                                        <input class="check" type="checkbox" value="{$item.id}">
                                                    </label>
                                                </td>
                                                <td>{$item.uname}</td>
                                                <td>
                                                    {$item.rwid=='1'?'48小时内升级到OM3':($item.rwid=='2'?'96小时内升级到OM4':($item.rwid=='3'?'240小时内升级到OM5':''))}
                                                </td>
                                                <td>{$item.btime|date='Y-m-d H:i:s',###}</td>
                                                <td>

                                                    {if condition="$item.zt eq '0'"}<span class="text-default">{$item.id|istiaozhanchaishi=###}</span>
                                                    {elseif condition="$item.zt eq '1'"}<span class="text-success">成功，用时<?php echo(round(($item['etime']-$item['btime'])/60));?>分</span>
                                                    {else /}<span class="text-danger">失败</span>
                                                    {/if}
                                                </td>
                                            </tr>
                                        {/foreach}
                                        </tbody>
                                        <tfoot>
                                            <tr>
                                                <th class="per5">
                                                    <label class="checkbox">
                                                        <input class="check-all" type="checkbox">
                                                    </label>
                                                </th>
                                                <th>用户名</th>
                                            </tr>
                                        </tfoot>
                                    </table>
                                    <div class="row">
                                        <div class="col-md-6">
                                            {$lists->render()}
                                        </div>
                                        <div class="col-md-6">
                                            <p>总数：{$lists->total()}</p>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!-- Page End here -->
                </div>
                <!-- End .outlet -->
            </div>
            <!-- End .content-wrapper -->
            <div class="clearfix"></div>
        </div>
        
        <!-- End #content -->
        {include file="../view/foot" /}
        <script src="/public/theme/win10/assets/plugins/forms/checkall/jquery.checkAll.js"></script>
        <script>
            $('.table').checkAll({
                masterCheckbox: '.check-all',
                otherCheckboxes: '.check'
            })
        </script>
    </body>
</html>